import request from '@/utils/request'

// 查询家乡管理列表
export function listHometow(query) {
  return request({
    url: '/store/hometown/list',
    method: 'get',
    params: query
  })
}

// 查询家乡管理详细
export function getHometow(hometownId) {
  return request({
    url: '/store/hometown/' + hometownId,
    method: 'get'
  })
}

// 新增家乡管理
export function addHometow(data) {
  return request({
    url: '/store/hometown',
    method: 'post',
    data: data
  })
}

// 修改家乡管理
export function updateHometow(data) {
  return request({
    url: '/store/hometown',
    method: 'put',
    data: data
  })
}

// 删除家乡管理
export function delHometow(hometownId) {
  return request({
    url: '/store/hometown/' + hometownId,
    method: 'delete'
  })
}
